Optimal. Leaf size=142 \[ \frac {c^2 (3 A+B) \cos (e+f x) (a \sin (e+f x)+a)^{7/2}}{30 f \sqrt {c-c \sin (e+f x)}}+\frac {c (3 A+B) \cos (e+f x) (a \sin (e+f x)+a)^{7/2} \sqrt {c-c \sin (e+f x)}}{15 f}-\frac {B \cos (e+f x) (a \sin (e+f x)+a)^{7/2} (c-c \sin (e+f x))^{3/2}}{6 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.36, antiderivative size = 142, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.075, Rules used = {2973, 2740, 2738} \[ \frac {c^2 (3 A+B) \cos (e+f x) (a \sin (e+f x)+a)^{7/2}}{30 f \sqrt {c-c \sin (e+f x)}}+\frac {c (3 A+B) \cos (e+f x) (a \sin (e+f x)+a)^{7/2} \sqrt {c-c \sin (e+f x)}}{15 f}-\frac {B \cos (e+f x) (a \sin (e+f x)+a)^{7/2} (c-c \sin (e+f x))^{3/2}}{6 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2738
Rule 2740
Rule 2973
Rubi steps
\begin {align*} \int (a+a \sin (e+f x))^{7/2} (A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2} \, dx &=-\frac {B \cos (e+f x) (a+a \sin (e+f x))^{7/2} (c-c \sin (e+f x))^{3/2}}{6 f}+\frac {1}{3} (3 A+B) \int (a+a \sin (e+f x))^{7/2} (c-c \sin (e+f x))^{3/2} \, dx\\ &=\frac {(3 A+B) c \cos (e+f x) (a+a \sin (e+f x))^{7/2} \sqrt {c-c \sin (e+f x)}}{15 f}-\frac {B \cos (e+f x) (a+a \sin (e+f x))^{7/2} (c-c \sin (e+f x))^{3/2}}{6 f}+\frac {1}{15} (2 (3 A+B) c) \int (a+a \sin (e+f x))^{7/2} \sqrt {c-c \sin (e+f x)} \, dx\\ &=\frac {(3 A+B) c^2 \cos (e+f x) (a+a \sin (e+f x))^{7/2}}{30 f \sqrt {c-c \sin (e+f x)}}+\frac {(3 A+B) c \cos (e+f x) (a+a \sin (e+f x))^{7/2} \sqrt {c-c \sin (e+f x)}}{15 f}-\frac {B \cos (e+f x) (a+a \sin (e+f x))^{7/2} (c-c \sin (e+f x))^{3/2}}{6 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.85, size = 212, normalized size = 1.49 \[ -\frac {a^3 c (\sin (e+f x)-1) (\sin (e+f x)+1)^3 \sqrt {a (\sin (e+f x)+1)} \sqrt {c-c \sin (e+f x)} (-15 (16 A+11 B) \cos (2 (e+f x))-30 (2 A+B) \cos (4 (e+f x))+840 A \sin (e+f x)+60 A \sin (3 (e+f x))-12 A \sin (5 (e+f x))+240 B \sin (e+f x)-40 B \sin (3 (e+f x))-24 B \sin (5 (e+f x))+5 B \cos (6 (e+f x)))}{960 f \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^3 \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^7} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 142, normalized size = 1.00 \[ \frac {{\left (5 \, B a^{3} c \cos \left (f x + e\right )^{6} - 15 \, {\left (A + B\right )} a^{3} c \cos \left (f x + e\right )^{4} + 5 \, {\left (3 \, A + 2 \, B\right )} a^{3} c - 2 \, {\left (3 \, {\left (A + 2 \, B\right )} a^{3} c \cos \left (f x + e\right )^{4} - 2 \, {\left (3 \, A + B\right )} a^{3} c \cos \left (f x + e\right )^{2} - 4 \, {\left (3 \, A + B\right )} a^{3} c\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{30 \, f \cos \left (f x + e\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.80, size = 185, normalized size = 1.30 \[ \frac {\left (5 B \sin \left (f x +e \right ) \left (\cos ^{4}\left (f x +e \right )\right )+6 A \left (\cos ^{4}\left (f x +e \right )\right )+12 B \left (\cos ^{4}\left (f x +e \right )\right )-15 A \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )-10 B \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )-12 A \left (\cos ^{2}\left (f x +e \right )\right )-4 B \left (\cos ^{2}\left (f x +e \right )\right )-15 A \sin \left (f x +e \right )-10 B \sin \left (f x +e \right )-24 A -8 B \right ) \left (-c \left (\sin \left (f x +e \right )-1\right )\right )^{\frac {3}{2}} \sin \left (f x +e \right ) \left (a \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {7}{2}}}{30 f \left (\cos ^{2}\left (f x +e \right )-2 \sin \left (f x +e \right )-2\right ) \cos \left (f x +e \right )^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B \sin \left (f x + e\right ) + A\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {7}{2}} {\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 18.17, size = 321, normalized size = 2.26 \[ -\frac {{\mathrm {e}}^{-e\,6{}\mathrm {i}-f\,x\,6{}\mathrm {i}}\,\sqrt {c-c\,\sin \left (e+f\,x\right )}\,\left (\frac {a^3\,c\,{\mathrm {e}}^{e\,6{}\mathrm {i}+f\,x\,6{}\mathrm {i}}\,\cos \left (4\,e+4\,f\,x\right )\,\left (2\,A+B\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}}{16\,f}-\frac {B\,a^3\,c\,{\mathrm {e}}^{e\,6{}\mathrm {i}+f\,x\,6{}\mathrm {i}}\,\cos \left (6\,e+6\,f\,x\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}}{96\,f}+\frac {a^3\,c\,{\mathrm {e}}^{e\,6{}\mathrm {i}+f\,x\,6{}\mathrm {i}}\,\sin \left (e+f\,x\right )\,\left (A\,7{}\mathrm {i}+B\,2{}\mathrm {i}\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}\,1{}\mathrm {i}}{4\,f}+\frac {a^3\,c\,{\mathrm {e}}^{e\,6{}\mathrm {i}+f\,x\,6{}\mathrm {i}}\,\cos \left (2\,e+2\,f\,x\right )\,\left (16\,A+11\,B\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}}{32\,f}+\frac {a^3\,c\,{\mathrm {e}}^{e\,6{}\mathrm {i}+f\,x\,6{}\mathrm {i}}\,\sin \left (3\,e+3\,f\,x\right )\,\left (A\,3{}\mathrm {i}-B\,2{}\mathrm {i}\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}\,1{}\mathrm {i}}{24\,f}-\frac {a^3\,c\,{\mathrm {e}}^{e\,6{}\mathrm {i}+f\,x\,6{}\mathrm {i}}\,\sin \left (5\,e+5\,f\,x\right )\,\left (A\,1{}\mathrm {i}+B\,2{}\mathrm {i}\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}\,1{}\mathrm {i}}{40\,f}\right )}{2\,\cos \left (e+f\,x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________